﻿using SqlSugar;

namespace Kevin.Code.Generator.DbAccessor.Models
{
    /// <summary>
    /// 数据库链接
    /// </summary>
    [SugarTable("tb_db_connection")]
    public class DB_Connection
    {
        /// <summary>
        /// 链接id
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// 链接名称
        /// </summary>
        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// 链接类型
        /// </summary>
        [SugarColumn(ColumnName = "type")]
        public int Type { get; set; }

        /// <summary>
        /// 链接字符串
        /// </summary>
        [SugarColumn(ColumnName = "connection_string")]
        public string Connection_String { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time", IsOnlyIgnoreUpdate = true)]
        public DateTime Create_Time { get; set; }
    }
}
